CentOS 7
Sponsored Link

KVM : VMWare ESXi on KVM
2018/02/03
 
Install VMWare ESXi on KVM Virtual Machine.
[1]
[2] Update QEMU.
[root@dlp ~]#
/usr/libexec/qemu-kvm -version

QEMU emulator version 1.5.3 (qemu-kvm-1.5.3-141.el7_4.6), Copyright (c) 2003-2008 Fabrice Bellard
[root@dlp ~]#
yum -y install centos-release-qemu-ev
# disable usually

[root@dlp ~]#
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-QEMU-EV.repo
# for this installing, [qemu-kvm] package is replaced to [qemu-kvm-ev] package

[root@dlp ~]#
yum --enablerepo=centos-qemu-ev -y install qemu-kvm-ev
[root@dlp ~]#
systemctl restart libvirtd
[root@dlp ~]#
/usr/libexec/qemu-kvm -version

QEMU emulator version 2.9.0(qemu-kvm-ev-2.9.0-16.el7_4.13.1)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
[3] It's OK all, Install VMWare ESXi 6.5 as an example.
Specify [host-passthrough] for [--cpu], specify [sata] for [--disk] of [bus=***],
specify [e1000] for [--network] of [model=***],
specify [q35] for [--machine], specify [kvm_hidden=on] for [--features].
[root@dlp ~]#
virt-install \
--name esxi65 \
--ram 16384 \
--disk path=/var/kvm/images/esxi65.img,size=80,bus=sata \
--cpu host-passthrough \
--vcpus=6 \
--os-type linux \
--os-variant=virtio26 \
--network bridge=br0,model=e1000 \
--graphics spice,listen=0.0.0.0,password=password \
--video qxl \
--cdrom /tmp/VMware-VMvisor-Installer-201701001-4887370.x86_64.iso \
--features kvm_hidden=on \
--machine q35
[4] ESXi Installer starts.
[5] After finishing installation, ESXi starts normally.
[6] This is the ESXi Web console and CentOS 7 Virtual machine on ESXi is running.
 
Tweet